<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div id="jobGroupModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
			<form class="form-horizontal" name="jobGroupForm" ng-submit="saveJobGroup()">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">
						<i class="mark"></i> <span>新增修改任务组</span>
					</h4>
				</div>
				<div class="modal-body">
					<div class="form-group has-feedback" ng-class="{'has-error' : jobGroupForm.name.$invalid && jobGroupForm.name.$dirty, 
						'has-warning': jobGroupForm.name.$invalid && !jobGroupForm.name.$dirty}">
						<label class="col-sm-2 control-label control-label-sm">任务组名称:</label>
						<div class="col-sm-8">
							<input type="text" class="form-control input-sm" name="name" ng-model="jobGroupVO.name" ng-required="true"/>
							<span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden="true" 
								ng-show="jobGroupForm.name.$invalid && jobGroupForm.name.$dirty"></span>
							<span class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden="true"
								ng-show="jobGroupForm.name.$invalid && !jobGroupForm.name.$dirty"></span>
						</div>
					</div>
					<div class="form-group has-feedback" ng-class="{'has-error' : jobGroupForm.clusterName.$invalid && jobGroupForm.clusterName.$dirty, 
						'has-warning': jobGroupForm.clusterName.$invalid && !jobGroupForm.clusterName.$dirty}">
						<label class="col-sm-2 control-label control-label-sm">集群：</label>
						<div class="col-sm-8">
							<input select2 type="text" class="form-control input-sm" name="clusterName" ng-model="jobGroupVO.clusterName" 
								config="clusterSelectConfig" ng-required="true"/>
							<span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden="true" 
								ng-show="jobGroupForm.clusterName.$invalid && jobGroupForm.clusterName.$dirty"></span>
							<span class="glyphicon glyphicon-warning-sign form-control-feedback" ria-hidden="true"
								ng-show="jobGroupForm.clusterName.$invalid && !jobGroupForm.clusterName.$dirty"></span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label control-label-sm">描述说明:</label>
						<div class="col-sm-8">
							<textarea rows="5" cols="77" ng-model="jobGroupVO.description"></textarea>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<div class="modal-footer-button">
						<button type="button" class="btn btn-sm btn-default" data-dismiss="modal">取消</button>
						<button type="submit" class="btn btn-sm btn-blue">确认</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
